package o;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.List;

public class bks {
    @NonNull
    public static String ˏ(List<String> list, @Nullable String str) {
        return ˏ(list, str, null, null);
    }

    @NonNull
    public static String ˏ(List<String> list, @Nullable String str, @Nullable String str2, @Nullable String str3) {
        if (list == null || list.isEmpty()) {
            return "";
        }
        return ˋ((String[]) list.toArray(new String[0]), str, str2, str3);
    }

    @NonNull
    public static String ˊ(@Nullable String[] strArr, @Nullable String str) {
        return ˋ(strArr, str, null, null);
    }

    @NonNull
    public static String ˊ(@Nullable Integer[] numArr, @Nullable String str) {
        if (numArr == null || numArr.length == 0) {
            return "";
        }
        String[] strArr = new String[numArr.length];
        for (int i = 0; i < numArr.length; i++) {
            strArr[i] = String.valueOf(numArr[i]);
        }
        return ˋ(strArr, str, null, null);
    }

    @NonNull
    public static String ˋ(@Nullable String[] strArr, @Nullable String str, @Nullable String str2, @Nullable String str3) {
        if (strArr == null || strArr.length == 0) {
            return "";
        }
        String ˊ = bkz.ˊ(str);
        String ˊ2 = bkz.ˊ(str2);
        String ˊ3 = bkz.ˊ(str3);
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(ˊ2).append(strArr[0]).append(ˊ3);
        for (int i = 1; i < strArr.length; i++) {
            stringBuilder.append(ˊ);
            stringBuilder.append(ˊ2).append(strArr[i]).append(ˊ3);
        }
        return stringBuilder.toString();
    }
}
